package com.nemlistapp;

import org.xmlpull.v1.XmlPullParser;

public class Product {

	private int productId;
	private String productName;
	private int amount;
	private boolean bought;

	public Product(int productId, String productName, int amount, boolean bought) {
		
		this.productId = productId;
		this.productName = productName;
		this.amount = amount;
		this.bought = bought;
	}
	
	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}

	public String getProductName() {
		return productName;
	}
	public void setProductName(String name) {
		this.productName = name;
	}

	public boolean getBought() {
		return bought;
	}
	public void setBought(boolean bought) {
		this.bought = bought;
	}
	
	public String toString()
	{
		return productName + " Antal: " + amount;
	}

}
